<template>
<h3>demo12-props-demo01-children02.vue</h3>
  title：{{title}}<br/>
  age:{{age}}<br/>
  names:{{names}}<br/>
  author:{{author}}<br/>
  callback:{{callback}} <button @click="callback" class="zhtt-btn">callback</button><br/>
</template>

<script>
export default {
  props:{
    title:{
      type:String,
      default:'这是默认标题'
    },
    age:{
      type:Number,
      default:'12'
    },
    names:[String,Number],
    author:{
      type:Object,
      default:{
        name:'诸葛亮',age:100
      }
    },
    callback:Function,
  }
}
</script>
